Example of scripting a site with PageSpinner & AppleScript |
The contents in the pages are taken from simple text files in a folder you can specify in the script.The text files do not have to be in HTML format, although there are a few limitations in what characters that can be used. Text that contains a < or a > will not be displayed correctly, since these characters are interpreted as the beginning or the end of an HTML tag.
The files can be edited in SimpleText, PageSpinner or another text editor. If you want to insert special formatting, such as Bold or an images you can simply place the HTML tag in the text.
To specify the order the text files should be in the table of contents, you can select to use two or more characters in the beginning of the file name that's is used to sort the files by.
The default setting in the script is to use 3 characters followed by a space in the beginning of the name. The rest of the filename will be used as the text of the link in the TOC.
TIP: The script contains a variable that can set to indicate that the files should be sorted in descending order, this is useful if you let the first characters in the filename be the month, day and clock like for example "06121030" (June, 12 10:30) and you want the most recent file to be first in the list of contents.